<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>统一认证登录</title>
</head>
<body>
    <div>
        <h3 style="padding: 50px;text-align: center">登录中</h3>
    </div>
    <script type="text/javascript" th:inline="javascript">
        var res = [[${loginRes}]];
        if(res.code==200){
            var ua = navigator.userAgent;
            if(/(mobile|iphone|android)/i.test(ua)){
                window.location.replace(res.url_mobile);
            }
            else
            {
                window.location.replace(res.url_pc);
            }
        }
        document.querySelector("h3").innerText = res.msg;

    </script>
</body>
</html>
